//
//  ViewController.m
//  04-UIControl
//
//  Created by dllo on 16/7/19.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor brownColor];
    UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(0, 0, 100, 50)];
//    slider.maximumTrackTintColor = [UIColor redColor];
//    slider.minimumTrackTintColor = [UIColor blueColor];
//    slider.thumbTintColor = [UIColor yellowColor];
    [slider setMaximumTrackImage:[UIImage imageNamed:@"player_slider_playback_right"] forState:0];
    [slider setMinimumTrackImage:[UIImage imageNamed:@"player_slider_playback_left"] forState:0];
    [slider setThumbImage:[UIImage imageNamed:@"player_slider_playback_thumb"] forState:0];
    [self.view addSubview:slider];
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
